﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.M.System.Domain.Entity
{
    /// <summary>
    /// 员工表实体类
    /// </summary>
    [SugarTable("staff_table")]
    public class staff_table
    {
        /// <summary>
        /// 员工编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "员工编号", Length = 200)]
        public string employee_number { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [SugarColumn(ColumnDescription = "员工姓名", Length = 200)]
        public string? employee_name { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        [SugarColumn(ColumnDescription = "工号", Length = 200)]
        public string? employee_job { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDescription = "账号", Length = 200)]
        public string? employee_account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码", Length = 200)]
        public string? employee_cipher { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        [SugarColumn(ColumnDescription = "部门编号", Length = 200)]
        public string? department_number { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(ColumnDescription = "手机号", Length = 11)]
        public string? department_tel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 200)]
        public string? department_remark { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [SugarColumn(ColumnDescription = "头像", Length = 200)]
        public string? profile_picture { get; set; }

        /// <summary>
        /// 登录次数
        /// </summary>
        [SugarColumn(ColumnDescription = "登录次数")]
        public int number_of_logins { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        [SugarColumn(ColumnDescription = "是否禁用")]
        public bool isdisabled { get; set; }

        /// <summary>
        /// 禁用时 时间
        /// </summary>
        [SugarColumn(ColumnDescription = "禁用时 时间",IsNullable = true)]
        public DateTime? disableddate { get; set; }

        /// <summary>
        /// 是否登录
        /// </summary>
        [SugarColumn(ColumnDescription = "是否登录")]
        public bool isDongInfor { get; set; }
    }
}
